﻿using System;
using System.Security.Principal;

namespace OnlineFamilyCalendar.Common.Security
{
    [Serializable()]
    public class OnlineFamilyCalendarIdentity : IIdentity
    {
        const string ONLINEFAMILYAUTHENTICATION = "OnlineFamilyAuthentication";

        public Guid FamilyMemberId { get; set; }
        public string Name { get; set; }
        public bool IsAuthenticated { get; set; }
        public string Role { get; set; }

        public OnlineFamilyCalendarIdentity()
        {
            FamilyMemberId = new Guid();
            Name = String.Empty;
            IsAuthenticated = false;
            Role = String.Empty;
        }

        public string AuthenticationType
        {
            get { return ONLINEFAMILYAUTHENTICATION; }
        }
    }
}
